package com.example.chandao.services.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.chandao.mapper.ProductMapper;
import com.example.chandao.pojo.Product;
import com.example.chandao.services.ProductService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.*;
import java.util.stream.Collectors;

@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    private ProductMapper productMapper;

    @Override
    public List<Product> getAllProducts(Product project) {
        return productMapper.selectProducts(project);
    }

    @Override
    public List<Product> getProductDataCount(Product project) {
        return productMapper.selectProductCount(project);
    }
}
